#include<stdio.h>
#include<string.h>
#include<string>
#include <algorithm>
#include<iostream>
using namespace std;
int main()
{
	int m1, m2, m3, m[100 + 5], out[6 + 5],flag;
	int z[6 + 5] = { 100,50,20,10,5,1 };
	while (cin >> m1 >> m2)
	{
		//cal
		m3 = m1 - m2;
		cout << m3 << endl;
		for (int i = 0; i < 6; i++)
		{
			out[i] = m3 / z[i];
			m3 -= out[i] * z[i];
		}
		//output
		flag = 0;
		for (int i = 0; i < 6; i++)
		{
			if (out[i]) 
			{ 
				if (flag)cout << "+"; 
				cout << z[i] << "*" << out[i];
				flag = 1;
			}
		}
		cout << "=" << m1-m2 << endl;
	}
	return 0;
}